package com.xx.sg.own.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.xx.sg.dbw.entity.PlatUser;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("sg_communication_terminal_log")
public class CommunicationTerminalLog {

    @TableId(value = "id", type = IdType.ASSIGN_UUID)
    private String id;

    @TableField(value = "dev_id")
    private String devId;
    @TableField(value = "communication_terminal_id")
    private String communicationTerminalId;
    @TableField(value = "latitude")
    private String latitude;
    @TableField(value = "longitude")
    private String longitude;
    @TableField(value = "time")
    private String time;
    @TableField(value = "data_status")
    private String dataStatus;
    @TableField(value = "data_text")
    private String dataText;
    @TableField(value = "create_time")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;
}
